const arr = [1, 2, 3, 4, 5]
const num = arr.reduce((acc, cur) => acc + cur , 0)
console.log(num)